import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Counter';
import store from './store/index'

//导入react-redux中提供的全局数据共享组件provider
import {Provider} from 'react-redux'
//在使用的时候需要将全局共享的数据放在该组件的store属性中
ReactDOM.render(
  <Provider store={store}>
  <App></App>
  </Provider>,
  document.getElementById('root')
);
